/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 查询投诉与反馈表列表 POST /scenic/complaintFeedback/getComplaintFeedback */
export async function scenicComplaintFeedbackGetComplaintFeedbackUsingPost({
  body,
  options,
}: {
  body: API.ComplaintFeedbackBo73e50a7a8efa43c2A419E8bb16e663e4;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVotousuyufankuibiaovo>(
    '/scenic/complaintFeedback/getComplaintFeedback',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 根据主键id查询投诉与反馈表 GET /scenic/complaintFeedback/getComplaintFeedbackById */
export async function scenicComplaintFeedbackGetComplaintFeedbackByIdUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicComplaintFeedbackGetComplaintFeedbackByIdUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingtousuyufankuibiaovo>(
    '/scenic/complaintFeedback/getComplaintFeedbackById',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 新增保存投诉与反馈表 POST /scenic/complaintFeedback/saveComplaintFeedback */
export async function scenicComplaintFeedbackSaveComplaintFeedbackUsingPost({
  body,
  options,
}: {
  body: API.ComplaintFeedbackBoda068f9b517949d2967016b156d8542c;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/complaintFeedback/saveComplaintFeedback',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 投诉与反馈表统计接口 GET /scenic/complaintFeedback/statistics */
export async function scenicComplaintFeedbackStatisticsUsingGet({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingStatisticsVo>(
    '/scenic/complaintFeedback/statistics',
    {
      method: 'GET',
      ...(options || {}),
    }
  );
}
